.products-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding: 20px;
}

.products-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn {
  margin-right: 20px;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  color: #333;
  flex: 1;
}

.products-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.category-tabs {
  padding: 20px;
}

.category-tabs .ant-tabs-nav {
  margin-bottom: 20px;
}

.products-table-container {
  min-height: 400px;
}

.products-table {
  margin-top: 20px;
}

.current-price {
  font-size: 16px;
  font-weight: bold;
  color: #ff4d4f;
}

.original-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-top: 2px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-container p {
  margin-top: 15px;
  font-size: 14px;
}

/* 商品详情弹窗样式 */
.product-detail-modal .ant-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.product-detail-content {
  padding: 20px 0;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.product-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  flex: 1;
}

.product-price {
  text-align: right;
}

.product-price .current-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff4d4f;
  display: block;
}

.product-price .original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.product-description,
.product-rich-content,
.product-images,
.product-tags {
  margin-bottom: 25px;
}

.product-description h3,
.product-rich-content h3,
.product-images h3,
.product-tags h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #1890ff;
}

.product-description p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.rich-content {
  color: #666;
  line-height: 1.6;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
  color: #333;
  margin-bottom: 10px;
}

.rich-content p {
  margin-bottom: 10px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .products-page {
    padding: 10px;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .products-content {
    overflow-x: auto;
  }

  .products-table .ant-table {
    min-width: 700px;
  }

  .current-price {
    white-space: nowrap;
  }

  .category-tabs {
    padding: 12px;
  }
  
  .product-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .product-header h2 {
    font-size: 1.3rem;
  }
  
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .product-image {
    height: 120px;
  }
}

/* 表格响应式 */
@media (max-width: 576px) {
  .products-table .ant-table-thead > tr > th,
  .products-table .ant-table-tbody > tr > td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .products-table .ant-table-thead > tr > th {
    font-size: 12px;
  }
} 